home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_lag_endlevel.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  60 lines

  1. # Jones 3D Cog Script
  2. #
  3. # lag_EndLevel.cog
  4. #
  5. # [RT & DS]
  6. #
  7. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ========================================================================================
  10.  
  11. symbols
  12.  
  13.     message    startup
  14.     message    crossed
  15.  
  16.     surface    crossurf
  17.  
  18. # ---------Camera Fade Stuff----------------------------------------------
  19.     thing        fadeghost
  20.     thing        fadething
  21.     thing        player                local
  22.  
  23. end
  24.  
  25. # ========================================================================================
  26.  
  27. code
  28. startup:
  29.     player = GetLocalPlayerThing();
  30.     SetThingAlpha(fadething, 0.0);            #transparent.
  31.     return;
  32.  
  33.  
  34. crossed:
  35.     if (GetSourceRef() == (GetLocalPlayerThing()))
  36.     {
  37.     SetActorFlags(player, 0x200000);        #no control.
  38. #    StopThing(player);
  39.     StartCutscene(2);
  40.     SetCameraFadeThing(2, fadething, fadeGhost, 0);
  41.     SetCurrentCamera(2);
  42.     ThingFadeAnim(fadething, 0, 1, 1.5, 0);
  43.     Sleep(1.5);
  44.     EndCutscene();
  45.     JonesEndLevel();
  46.     }
  47.     return;
  48.  
  49. # ........................................................................................
  50.  
  51.  
  52. end
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.